package 设计模式.基本原则.里氏代换原则.before;

//正方形类
public class zhengfangxing extends changfangxing {
    @Override
    public void setLength(double length) {
        super.setLength(length);
        super.setWidth(length);
    }

    @Override
    public void setWidth(double length) {
        super.setLength(length);
        super.setWidth(length);
    }

}
